import SeaDataTable from './data-table/installer.js'
import SeaFormItem from './form-item/installer.js'
import SeaImage from './image/installer.js'
import SeaPagination from './pagination/installer.js'
import SeaRequest from './request/installer.js'
import SeaEvent from './event/installer.js'

import smart_form from './smart-form/installer.js'

import table_header from './table-header/installer.js'
import text_ from './text/installer.js'
import layer_ from './layer/installer.js'
import ui_ from './ui/installer.js'
import icon_ from './icon/installer.js'


const components = [
    SeaDataTable
    , SeaFormItem
    , SeaImage
    , SeaPagination
    , SeaRequest
    , SeaEvent

    , smart_form

    , table_header
    , text_
    , layer_
    , ui_
    , icon_
];

/* istanbul ignore next */
const install = function (Vue, opts = {}) {
    // execute all installer
    components.forEach(component => {
        component.install(Vue)
    });

    /* istanbul ignore if */
    // if (typeof window !== 'undefined' && window.Vue) {
    //     install(window.Vue);
    // }
};

export default {install};
